var buildtype = process.argv.slice(2)[0]
console.log('------start build-------' + buildtype)
var obj = {
    NODE_ENV: '"production"',
    Mock: true
}
switch (buildtype) {
    case 'pro':
        //生产正式
        process.env.srconfig = 'pro'
        obj.srconfig = '"pro"'
        break
    case 'dev':
        //模拟数据
        process.env.srconfig = 'dev'
        obj.srconfig = '"dev"'
        break
    case 'test':
        //测试环境
        process.env.srconfig = 'test'
        obj.srconfig = '"test"'
        break
    default:
        //默认开发
        process.env.srconfig = ''
        obj.srconfig = '""'
        break
}
module.exports = obj
